﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TTEngine
{
    public class CutThroat : Actor
    {
        //constructor
        public CutThroat()
            : base()
        {
            Alignment = "Evil";
            AddTag("Humanoid");
            AddTag("Human");
            AttackName = "punches";
            Damage = new DamageExpressionList("1z4=b");
            Body = 2;

            //gear
            Dagger dagger = new Dagger();
            ReadyGear(dagger);
            if (Globals.RandomIntFromTo(1, 6) == 6)
            {
                MapObject gear = MapObjectFactory.GetLoot(0);
                if (gear != null)
                    AddGear(gear);
            }
            int gold = Globals.RandomIntFromTo(-10, 10);
            if (gold > 0)
            {
                MapObject gear = MapObjectFactory.GetMapObject("Gold Coin", gold);
                if (gear != null)
                    AddGear(gear);
            }
        }

        //clone
        public override MapObject Clone()
        {
            return new CutThroat();
        }

        //object name
        public override string ObjectName
        {
            get
            {
                return "Cut-throat";
            }
        }

        //image
        public override Bitmap Image
        {
            get
            {
                return Properties.Resources.CutThroat;
            }
        }
    }
}
